package essentials;

/**
 * @param args the command line arguments
 */
public class AppLauncher {

    public static void main(String args[]) {
        UtilsToSort.setNimbusLAF();

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                configureAndShowGUI();
            }

            private void configureAndShowGUI() {
                
                //configure mvc
                Controller controller = new Controller();
                controller.initializeModel();
                
                SimpleGUI gui = new SimpleGUI();
                
                gui.setController(controller);
                controller.setView(gui);
                
                //prepare to show the gui
                controller.modelToView();
                //show gui
                gui.setVisible(true);
                
            }
        });
    }
}
